package com.mybdqn.dao;

import com.mybdqn.pojo.Permission;
import org.apache.ibatis.annotations.Param;
import java.util.List;
import java.util.Map;
import java.util.Set;

/**
* Mapper Interface Permission
*
* 2017-12-14
*/
public interface PermissionMapper {

    public Permission getPermissionById(@Param(value = "id") Integer id)throws Exception;

    public List<Permission> getPermissionListByMap(Map<String, Object> param)throws Exception;

	public Integer getPermissionRecordCount(Map<String, Object> param)throws Exception;

    public Integer insertPermission(Permission permission)throws Exception;

    public Integer updatePermission(Permission permission)throws Exception;

    public Integer deletePermissionById(@Param(value = "id") Integer id)throws Exception;

    public Set<String> getPermissionByRoleNames(@Param("set")Set<String> roles);
}